import React from 'react';
import { Link } from 'react-router-dom';
import $_GET from '@src/public/js/util/get.js';

import styles from './index.less'
import CodeEdit from '@components/codeEdit'

class Home extends React.Component {
	componentDidMount(){
		let ws = new WebSocket('ws://127.0.0.1:8888/'+$_GET['user']);
	}
	render() {
		return (
			<div className={styles.indexBox}>
				<header className={styles.header}>
					<div className={styles.title}>AlInterview 远程在线系统</div>
				</header>
				<section className={styles.section}>
					<div className={styles.problem}>
						<div className={styles.problemTitle}>1、这是考试题目</div>
						<CodeEdit></CodeEdit>
					</div>
				</section>
				<footer className={styles.footer}>
					<span>power by ybfweb@163.com</span>
				</footer>
			</div>
		)
	}
}
export default Home;
